<? $page_title='领料需求明细' ?>
<?include "FASHION/page_header.phtml"?>
<script language="JavaScript" src="<?php echo $root; ?>/util/datepicker/WdatePicker.js"></script>

<form method="get">
	<?= htmlutil::makeTimesRangeBox() ?>
	<{if $hasallusers}>
		&nbsp; 用户：<?= htmlutil::users_select('user_id', '') ?>
	<{/if}>
	&nbsp; <input type="submit" value="搜索" />
</form>

<table border="0" class="list"><tbody>
<tr class="nobg">
	<th>单号</th>
	<th>用户</th>
	<th>审批状态</th>
	<th >需求时间</th>
	<th width="60">操作</th>
</tr>
<? if($list) foreach($list as $d){?>
<tr>
	<td><?$d.sno?></td>
	<td><?$d.user_name?></td>
	<td><?= DemandHelper::flow2text($d.audit_flow) ?></td>
	<td class="nowrap"><?=date('Y/m/d H:i', $d.addtime)?></td>
	<td>
		<a href="<?url("outbound-view/id/".$d.id)?>" class="view" title="查看"></a>
	</td>
</tr>
<? } ?>
</tbody></table>

<?= Html::pager($pager) ?>

<?include "FASHION/page_footer.phtml"?>